<?php

namespace app\Api\model;

use app\common\model\Users as cUsers;

class Users extends cUsers
{
    /**
     * 列表
     * @param  array   $querys [description]
     * @return [type]          [description]
     */
    public function getInfoList($querys = [], $with = null, $order = 'id desc')
    {
        if ($with && is_string($with) && strpos($with, ' ')) {
            $order = $with;
            $with = null;
        }
        
        return $this->where($this->setInfoListQuery($querys))->order($order)->with($with)->select();
    }
}
